/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;


namespace JDCloudSDK.Dcap.Model
{

    /// <summary>
    ///  orderVo
    /// </summary>
    public class OrderVo
    {

        ///<summary>
        /// 付费类型 NEW - 新购  RESIZE_FORMULA - 变配
        ///</summary>
        public string OrderType{ get; set; }
        ///<summary>
        /// 需要变配的资源ID（变配必传）
        ///</summary>
        public string SourceId{ get; set; }
        ///<summary>
        /// 购买时长类型, 新购时必传.
        /// MONTH: 按月购买
        /// YEAR: 按年购买
        /// 
        ///</summary>
        public string TimeUnit{ get; set; }
        ///<summary>
        /// 购买时长, 新购时必传.
        /// timeUnit &#x3D; MONTH 时, 可取值 1-9
        /// timeUnit &#x3D; YEAR 时, 可取值 1-3
        /// 
        ///</summary>
        public int? TimeSpan{ get; set; }
        ///<summary>
        /// 打包标识，组合购使用，可以为空
        ///</summary>
        public string TaskId{ get; set; }
        ///<summary>
        /// OPEN-开通自动续费,CLOSE-关闭自动续费,默认关闭
        /// 开通自动续费时,renewTimeUnit,renewTimeSpan为必选项
        /// 
        ///</summary>
        public string AutoRenew{ get; set; }
        ///<summary>
        /// 自动续费时间单位(MONTH-月,YEAR-年)
        ///</summary>
        public string RenewTimeUnit{ get; set; }
        ///<summary>
        /// 自动续费时长
        /// 1. renewTimeUnit&#x3D;MONTH 时，取值范围 [1,9]
        /// 2. renewTimeUnit&#x3D;YEAR 时，取值范围 [1,3]
        /// 
        ///</summary>
        public int? RenewTimeSpan{ get; set; }
        ///<summary>
        /// 自动支付标识(SDK下单自动付费时设置为true)
        ///</summary>
        public bool AutoPay{ get; set; }
    }
}
